package com.turing.post.account.impl;

import javax.ejb.Local;
import javax.ejb.Remote;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import com.turing.post.account.util.AccountSystemHisTradDetail;
import com.turing.post.account.util.AccountSystemHisTradDetailDao;
import com.turing.post.util.GeneralDao;
import com.turing.post.util.PCPSApplicationException;

/**
 * 帐户子系统历史交易流水（AccountSystemHisTradDetail）
 * @author zxp
 * @Jan 28, 2013
 */
@Stateless(mappedName = "account.impl.AccountSystemHisTradDetailDaoImpl")
@Remote
@Local
public class AccountSystemHisTradDetailDaoImpl implements
		AccountSystemHisTradDetailDao {

	/**
	 * 实体管理器
	 * 
	 * @see javax.persistence.EntityManager
	 */
	@PersistenceContext
	protected EntityManager _em;

	@Override
	public void insert(AccountSystemHisTradDetail ashtd)
			throws PCPSApplicationException {
		GeneralDao.insert(_em, ashtd);
	}
}
